package com.echovin.esb.gateway.service.impl;

import com.echovin.esb.gateway.mapper.GatewayErrorResponseMapper;
import com.echovin.esb.gateway.model.GatewayErrorResponse;
import com.echovin.esb.gateway.service.GatewayErrorResponseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GatewayErrorResponseServiceImpl implements GatewayErrorResponseService {
    @Autowired
    GatewayErrorResponseMapper gatewayErrorResponseMapper;

    public GatewayErrorResponseServiceImpl() {
    }

    @Override
    public List<GatewayErrorResponse> getErrorResponse() {
        return gatewayErrorResponseMapper.getErrorResponse();
    }

    @Override
    public List<GatewayErrorResponse> getDefaultErrorResponse() {
        return gatewayErrorResponseMapper.getDefaultErrorResponse();
    }

    @Override
    public int delete(GatewayErrorResponse record) {
        return gatewayErrorResponseMapper.delete(record);
    }

    @Override
    public int update(GatewayErrorResponse record) {
        return gatewayErrorResponseMapper.update(record);
    }
}
